package com.ruoyi.db.model.param;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

@Data
public class FormInfoHisParam extends BaseParam{

    private String pushResult;

    private Integer formId;

    private Long uid;

    private String pushType;

    private String channelCode;

    public String startUserCreateTime;

    public String endUserCreateTime;

    public String userCreateTime;

    public String getStartUserCreateTime(){
        if (StrUtil.isNotEmpty(userCreateTime) && StrUtil.isEmpty(startUserCreateTime)){
            String[] split = userCreateTime.split("~");
            this.startUserCreateTime = split[0];
            return startUserCreateTime;
        }
        return startUserCreateTime;
    }

    public String getEndUserCreateTime(){
        if (StrUtil.isNotEmpty(userCreateTime) && StrUtil.isEmpty(endUserCreateTime)){
            String[] split = userCreateTime.split("~");
            this.endUserCreateTime = split[1];
            return endUserCreateTime;
        }
        return endUserCreateTime;
    }

}
